/**
 *布局 
 */
Ext.define("AM.view.MainLayout",{
	extend:'Ext.panel.Panel',
	alias:'widget.mainlayout',
	defaults:{
		split:true,
		bodyStyle:'padding 1px'
	},
	layout:'border',
	items:[{
		title:'部门树形',
		region:'west',
		xtype:'panel',
		margins:'5 2 5 5',
		width:200,
		collapsible:true,//面板是可以被折叠的
		id:'west-tree',
		layout:'fit',
		items:[{
			id:'dept-tree'
		}]
	},{
		title:'部门数据表格',
	    region:'center',
	    xtype:'panel',
		margins:'5 5 5 0',
		items:[{
			id:'dept-grid'
	    }]
	}]
});